home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / strtod.man < prev    next >
Encoding:
Text File  |  1989-05-21  |  2.3 KB  |  69 lines

  1.  
  2.  
  3.  
  4. strtod                    User Commands                    strtod
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NNAAMMEE
  11.      strtod - Convert character string to floating-point number
  12.  
  13. SSYYNNOOPPSSIISS
  14.      ##iinncclluuddee <<ssttddlliibb..hh>>
  15.  
  16.      ddoouubbllee
  17.      ssttrrttoodd((_s_t_r_i_n_g, _e_n_d_P_t_r)
  18.  
  19. AARRGGUUMMEENNTTSS
  20.      char     *_s_t_r_i_n_g  (in)      String     containing      ASCII
  21.                                  representation of floating-point
  22.                                  number.
  23.  
  24.      char     **_e_n_d_P_t_r (out)     If not NNUULLLL,  gives  address  of
  25.                                  pointer  to fill in with address
  26.                                  of first character  not  forming
  27.                                  part of number.
  28.  
  29. _________________________________________________________________
  30.  
  31.  
  32. DDEESSCCRRIIPPTTIIOONN
  33.      The ssttrrttoodd procedure parses a floating-point number in ASCII
  34.      representation  and  returns  a ddoouubbllee result containing the
  35.      binary form of the number.  The expected form of  _s_t_r_i_n_g  is
  36.      an  optional  plus or minus sign, then a sequence of decimal
  37.      digits  optionally  containing  a  decimal  point,  then  an
  38.      optional exponent part.  If the exponent part is present, it
  39.      consists of the letter EE (or ee), then an  optional  plus  or
  40.      minus  sign,  then a sequence of decimal digits.  The entire
  41.      floating-point number may be preceded by any amount of white
  42.      space (as defined by the iissssppaaccee procedure).
  43.  
  44.      _S_t_r_t_o_d examines as many characters as possible  from  _s_t_r_i_n_g
  45.      while still obeying the syntax rules given above.  If _e_n_d_P_t_r
  46.      is not NNUULLLL, then the address of the first character follow-
  47.      ing the floating-point number is stored in *_e_n_d_P_t_r.
  48.  
  49.      If _s_t_r_i_n_g does not refer to a floating-point number  in  the
  50.      format given above, then zero is returned and _s_t_r_i_n_g will be
  51.      stored at *_e_n_d_P_t_r.
  52.  
  53.  
  54. KKEEYYWWOORRDDSS
  55.      convert, floating-point, string
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. Sprite v.1.0         Printed:  May 20, 1989                     1
  66.  
  67.  
  68.  
  69.